<template>
    <section class="page">
    </section>
</template>

<script>
import { getWxAuthorize } from '@/libs/service'
export default {
    name: 'wxAuth',
    data () {
        return {
            host: 'http://n.szbatm.com'
        }
    },
    activated () {
    },
    created () {
        let fullPath = this.$route.fullPath.split('/wxAuth#')
        let redirectUrl = decodeURIComponent(fullPath[1])
        // 每次扫码清空记录信息
        sessionStorage.removeItem('wxCode')
        this.$ls.removeItem('token')
        getWxAuthorize(redirectUrl)
    },
    methods: {
    },
    watch: {
    }
}
</script>

<style lang="less" scoped>
</style>
